package heap;

import java.util.Arrays;
import java.util.Random;

public class ExtendHeapTest {
    public static void main(String[] args) {
        Integer[] array = new Integer[11];
        for (int i = 0; i < array.length; i++) {
            Random r = new Random();
            array[i] = r.nextInt(100);
        }
        System.out.println(Arrays.toString(array));
        ExtendHeap<Integer> heap = new ExtendHeap<Integer>(array);
        System.out.println(heap.toString());
        heap.sort();
        System.out.println(heap.toString());
    }
}